# Maintainer: Dominika Liberda <ja@sdomi.pl>
# Contributor: Dominika Liberda <ja@sdomi.pl>
pkgname=xmp
pkgver=4.1.0
pkgrel=0
pkgdesc="Command-line mod player using libxmp"
url="https://github.com/libxmp/xmp-cli"
arch="all"
license="GPL-2.0-or-later"
makedepends="
	alsa-lib-dev
	autoconf
	automake
	libxmp-dev
	pulseaudio-dev
	"
subpackages="$pkgname-doc"
source="https://github.com/libxmp/xmp-cli/archive/refs/tags/xmp-$pkgver.tar.gz"
options="!check" # no test suite
builddir="$srcdir/$pkgname-cli-$pkgname-$pkgver/"

prepare() {
	default_prepare
	./autogen.sh
}

build() {
	./configure --disable-oss --enable-pulseaudio prefix=/usr
	make
}

package() {
	make install DESTDIR="$pkgdir" PREFIX=/usr
}

sha512sums="
ed225ddf9e31fa0de19628a5346cb8238f18e55cf9cb06bfb50c448cb78805a6a257b2eac1a3530ee38c29285fad8daac9951204dee18298c11d0f64b065f24d  xmp-4.1.0.tar.gz
"
